<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="pl" />
        <!-- blueprint CSS framework -->
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />

        <!--[if lt IE 8]>
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
        <![endif]-->

        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.min.css" />
        <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap.min.js" type="text/javascript"></script>        
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/tooltip.js" type="text/javascript"></script>
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <script type="text/javascript">
            $(document).ready(function () {
                //bindBtnTooltip(".lnkTooltip");
                 bindBtnTooltip("[title]");
               
            }); 
        </script>
        <script>
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

        ga('create', 'UA-49455163-1', 'mcupie.com');
        ga('send', 'pageview');

        </script>
    </head>
    <body>
        <div class="cookies">
            
        </div>
        <div class="container" id="page">
            <div id="header">
                <div id="logo">
                    <!--<div class="logoHeader"><?php /* echo CHtml::encode(Yii::app()->name); */ ?>
                    </div>-->

                    <div class="settingBox">
                        <div  style="position:relative;z-index:1000;">
                            <table class="table" id="set" style="display:none;">
                                <tr>
                                    <td>
                                        <?php $this->widget('ext.LanguagePicker.ELanguagePicker', array('title' => Yii::t('app', 'languagePicker.title'))); ?>

                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div><!-- header -->
            <div class="navbar navbar-default">
                <div class="container">
                    <div class="navbar-header">
                        <a class="navbar-brand pixelFont" href="#" >
                            MCU PIE
                        </a>
                    </div>
                    <div id="navbar-collapse collapse">
                        <?php
                        $this->widget('zii.widgets.CMenu', array(
                            'encodeLabel' => false,
                            'htmlOptions' => array(
                                'class' => 'nav navbar-nav',
                            ),
                            'items' => array(
                                array('label' => '<span class="glyphicon glyphicon-home"></span> ' . Yii::t('app', 'main.home'), 'url' => array('/site/index')),
                                array('label' => '<span class="glyphicon arduinopng"></span> Arduino', 'url' => array('/article/arduino')),
                                array('label' => '<span class="glyphicon glyphicon-book"></span> ' . Yii::t('app', 'main.dictionary'), 'url' => array('/site/dictionary')),
                                array('label' => '<span class="glyphicon glyphicon-send"></span> ' . Yii::t('app', 'main.contact'), 'url' => array('/site/contact')),
                                array('label' => '<span class="glyphicon glyphicon-question-sign"></span> ' . Yii::t('app', 'main.about'), 'url' => array('/site/page', 'view' => 'about')),
                                array('label' => '<span class="glyphicon glyphicon-user"></span> ' . Yii::t('app', 'main.login'), 'url' => array('/site/login'), 'visible' => !Yii::app()->user->isGuest),
                                array('label' => '<span class="glyphicon glyphicon-user"></span> Logout (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest),
                                //array('label' => '', 'url' => '#', 'linkOptions' => array('onclick' => '$(\'#set\').toggle();', 'style' => 'cursor:pointer;padding-right:30px;margin-top:-1px;', 'class' => 'glyphicon glyphicon-wrench')),
                                array('label' => '', 'url' => '#', 'linkOptions' => array('onclick' => '$(\'#set\').toggle();', 'style' => 'cursor:pointer;padding-right:30px;margin-top:-1px;', 'class' => 'glyphicon glyphicon-globe'))
                            ),
                        ));
                        ?>
                    </div>
                </div>
            </div>
            <?php echo $content; ?>
            <div class="clear"></div>
            <div id="footer" title="fksdkfsdkjfbskjd">
                Copyright &copy; <?php echo date('Y'); ?> by MR IT Marcin Rosiak.<br/>
                All Rights Reserved.
            </div><!-- footer -->
        </div><!-- page -->
    </body>
</html>